<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
    />
    <title>屏幕共享</title>
  </head>
  <body>
    <img id="screenImg" style="width: 100%;" />
    <script>
      setInterval(function() {
        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function() {
          if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            document.getElementById("screenImg").src = xmlhttp.responseText;
          }
        };
        xmlhttp.open("GET", "/refresh?t=" + Math.random(), true);
        xmlhttp.send();
      }, 60);
    </script>
  </body>
</html>
